package com.yunupmall.service.admin.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yunupmall.api.fordVO.KindPo;
import com.yunupmall.api.fordVO.KindVO;
import com.yunupmall.api.fordentity.Commodity;
import com.yunupmall.api.fordentity.Kind;
import org.springframework.stereotype.Service;

import java.util.List;


public interface KindService extends IService<Kind> {


    /**
     * byid
     * @return
     */
    List<Kind> byid(Integer id);

    //添加商品类别
    String AddKind(Kind kind);

    /**
     * 分页
     * @param kindPo
     * @return
     */
    Page<Kind> pageKind(KindPo kindPo);
    /**
     * 获取类别List
     */
    List<Kind> getList(KindPo kindPo);

    /**
     * @param thissize
     * @param page
     * @return
     */
    List<Kind> getAllKindData(Integer thissize, Integer page);

    /**
     * 删除类别
     * @param id
     * @return
     */
    String deleteKindData(Integer id);

    /**
     *查询一级商品类别
     */
    List<Kind> getListone();

    /**
     * 通过类别id分页查询商品信息
     */
    Page<Commodity> pageCommtity(KindVO kindVO);

}
